package com.sh.data.engine.domain.taskalarm.model.domain;

import com.sh.data.engine.domain.base.model.BaseDomain;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.util.Date;

/**
 * @author tinglan.ys
 * @description:
 * @date 2022/4/28 下午5:12
 */
@Data
@SuperBuilder
@NoArgsConstructor
public class AlarmHistoryDomain extends BaseDomain {

    //    @ApiModelProperty(value = "报警配置id")
    private String taskAlarmConfigId;

    //    @ApiModelProperty(value = "项目id")
    private String projectId;

    //    @ApiModelProperty(value = "监控主题 0-离线计算 1-实时计算 2-数据质量 3-数据集成")
    private Integer subjectType;

    //    @ApiModelProperty(value = "告警对象")
    private String alertObject;

    //    @ApiModelProperty(value = "接受者id")
    private String receiverId;

    //    @ApiModelProperty(value = "接受者email")
    private String receiverEmail;

    //    @ApiModelProperty(value = "接受者用户名")
    private String receiverUsername;

    //    @ApiModelProperty(value = "报警原因 0-失败 1-完成 2-运行超时 3-未完成 4-sql语句出错 5-数据质量问题")
    private Integer alarmType;

    /**
     * 通知时间
     */
//    @ApiModelProperty(value = "通知时间")
    private Date alarmTime;

    /**
     * 报警内容
     */
//    @ApiModelProperty(value = "报警内容")
    private String alarmContent;

    //    @ApiModelProperty(value = "接受方式 0-邮件")
    private Integer receiveType;

    //    @ApiModelProperty(value = "发送状态 0-成功 1-发送中 2-发送失败")
    private Integer status;
}
